import myAxios from '../plugins/myAxios'

// 获取荣誉列表
export const getHonorList = (params) => {
  return myAxios.get('/admin/honor/list', { params })
}

// 新增荣誉
export const addHonor = (data) => {
  return myAxios.post('/admin/honor/add', data)
}

// 审核荣誉
export const auditHonor = (data) => {
  return myAxios.post('/admin/honor/audit', data)
}

// 导出荣誉记录
export const exportHonor = (params) => {
  return myAxios.get('/admin/honor/export', {
    params,
    responseType: 'blob'
  })
}
